import router from './router'
import store from './store'

function go(url,data){
	store.routeAction = "push";
	router.push({ path: url,query:{...data} });
}

function back(){
	store.routeAction = "pop";
	router.go(-1)
}

export default {
	go,
	back
}